Component org.nuxeo.platform.mobile.operation.chain.contrib
In bundle nuxeo-web-mobile-cap
Contributions
XML Source
<component name="org.nuxeo.platform.mobile.operation.chain.contrib">
<require>org.nuxeo.ecm.core.automation.featuresContrib</require>
<extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent" point="chains">
<chain id="sendEmailToMe">
<operation id="Context.FetchDocument"/>
<operation id="Notification.SendMail">
<param type="string" name="from">noreply@nuxeo.com</param>
<param type="string" name="message">
<html>
<head>
</head>
<body>
You asked to send an email to your own email account.
You will find files attached to this email.
<br/>
Original document is <a href="${docUrl}">${Document['dc:title']}</a>.
<br/>
Sent from Nuxeo.
</body>
</html>
</param>
<param type="string" name="subject">[Nuxeo] MailMe Service - new Binary sent</param>
<param type="stringlist" name="to">expr:Fn.getEmail(Context.principal.name)</param>
<param type="boolean" name="HTML">true</param>
<param type="stringlist" name="files">file:content</param>
<param type="string" name="viewId">view_documents</param>
</operation>
</chain>
</extension>
</component>